package com.soft.javase.day15.proxy;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/5/27
 */
public class Test {
    public static void main(String[] args) {
        ArithmeticCalculator calculator = CalculatorProxy.createCalculatorProxy();

        int add = calculator.add(5, 3);
        System.out.println("5 + 3 = " + add);

        int sub = calculator.sub(10, 4);
        System.out.println("10 - 4 = " + sub);

        int mul = calculator.mul(6, 7);
        System.out.println("6 * 7 = " + mul);

        int div = calculator.div(20, 5);
        System.out.println("20 / 5 = " + div);
    }
}
